package com.hmdp.constant;

public interface RedisConstants {
    interface RedisCommonConstants {
        Long CACHE_NULL_TTL = 2L;
    }

    interface RedisUserConstants {
        String LOGIN_CODE_KEY_PREFIX = "login:code:";
        Long LOGIN_CODE_TTL = 2L;
        String LOGIN_USER_KEY_PREFIX = "login:token:";
        Long LOGIN_USER_TTL = 36000L;

        String SIGN_KEY_PREFIX = "sign:";
    }

    interface RedisShopConstants {
        Long CACHE_SHOP_TTL = 30L;
        String CACHE_SHOP_KEY_PREFIX = "cache:shop:";

        Long CACHE_SHOP_TYPE_TTL = 30L;
        String CACHE_SHOP_TYPE_KEY = "cache:shop-type";

        String LOCK_SHOP_KEY_PREFIX = "lock:shop:";
        Long LOCK_SHOP_TTL = 10L;

        String SHOP_GEO_PREFIX = "shop:geo:";
    }

    interface RedisBlogConstants {
        String BLOG_LIKED_KEY_PREFIX = "blog:liked:";
    }

    interface RedisFollowConstants {
        String FOLLOWS_KEY_PREFIX = "follows:";
    }

    interface RedisFeedConstants {
        String FEED_KEY_PREFIX = "feed:";
    }

    interface RedisVoucherConstants {
        String CACHE_SECKILL_STOCK_KEY_PREFIX = "seckill:stock:";
    }






    String BLOG_LIKED_KEY = "blog:liked:";
    String FEED_KEY = "feed:";
    String SHOP_GEO_KEY = "shop:geo:";
    String USER_SIGN_KEY = "sign:";
}
